package com.matt.foundation.vo;

import com.matt.foundation.DO.ChildClassesDO;
import lombok.Data;
import org.apache.commons.lang.StringUtils;

import java.util.Objects;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2017/9/25
 * *******************************
 */
@Data
public class LiveRecordChildrenVo {

    private String id;

    private String name;

    private Integer gender;

    private String imgUrl;



    public static LiveRecordChildrenVo of(ChildClassesDO childClassesDO) {
        LiveRecordChildrenVo vo = new LiveRecordChildrenVo();
        vo.setId(childClassesDO.getId());
        vo.setName(childClassesDO.getName());
        vo.setGender(childClassesDO.getGender());
        vo.setImgUrl(childClassesDO.getImgUrl());
        return vo;
    }
}
